/**
 * @author wangmao
 * @date 2021/11/8 11:37
 */
/// <reference path="Validation.ts"/>

namespace Validation {
    const numberRegexp = /^[0-9]+$/
    export class ZipCodeValidation implements StringValidation {
        public isAcceptable(s: string): boolean {
            return s.length === 5 && numberRegexp.test(s)
        }
    }
}
